  <% data.forEach(function(item,index){ %>
        <% var ymh = item.buyRuleDefine.buyStartDay.split(/[-\s:]/).slice(0,3) %>
        <% var selling = new Date(Date.parse(ymh.join("/")))-new Date().getTime()>0 %>
		<div class="buyitem<% if(item.buyRuleDefine.isSale==0){ %> sellout<% } %><% if(selling){ %> selling<% } %>" data-selling="<%=item.buyRuleDefine.buyStartDay%>" data-id="<%= item.tid %>" data-title="<%= item.title %>" data-thumb="<%= imgsite %><%= item.thumb %>" data-description="<%= item.description %>">
			<div class="bdr-bom">
				<div class="img"><img src="<%= imgsite %><%= item.thumb %>" alt="<%= item.title %>" class="swiper-lazy" /><% if (item.showdiscount==1) { %><div class="discount"><span><%= item.discount %>折</span></div><% } %></div>
				<div class="item-info">
					<p class="g-title"><%= item.title %></p>
					<p class="g-intro"><%= item.description %></p>
					<p class="g-tag"><% item.tag.forEach(function(label){ %><span><%= label %></span><% }) %></p>
					<p class="g-price"><span class="s-price"><sub>&yen;</sub><%= item.sprice %></span> <del>&yen;<%= item.mprice %></del> 
					<% if(selling && item.buyRuleDefine.isSale==1){ %>
					   <span class="forsale"><%= item.buyRuleDefine.buyStartDay.replace(/\d+-(\d+)-(\d+).*/,"$1月$2日开售") %></span>					   
					<% }else{ %>
						<span>已售<%= item.selled %></span>
					<% } %>
					</p>
				</div>
				<% if(item.buyRuleDefine.isSale==0){ %><div class="sellout-icon"><i class="icon-selled"></i></div><% } %>
			</div>
		</div>
  <% }) %>
